<div >
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th ng-repeat="(key,list) in periods">
                {{list.name}} --- {{list.source_at}} 
                <button  class="sui-btn btn-danger" ng-click="deletetime(list.periods_id,list.res_item_id)"> 删除</button>
                </th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td ng-repeat="(ke,sub) in periods">
                     <a href="javascript:;" class="sui-btn btn-success btn-small" ng-click="addtimeslots(sub.timeslots);" style="margin-bottom: 10px;">+增加时段</a>
                    <div class="control-group" ng-repeat="(k,value) in sub.timeslots">
                        <label class="control-label v-top">
                        </label>
                        <div class="controls">
                            时间:
                            <input ng-model="value.start" name="name" value="" class="input-mini" style="width: 35px">~
                            <input ng-model="value.end" name="name" value="" style="width: 35px" ng-blur="Testing(value.end,value.start)">
                            <!-- 预约人数: -->
                            数量:
                            <input ng-model="value.max_count" type="text" name="max_count" value="" class="input-mini" style="width: 30px">
                            <a data-no-drag="" ng-click="deletetime(sub.periods_id,sub.res_item_id,value.timeslots_id)"><i class="fa fa-times fa-1"></i></a>
                        </div>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
    <span class="sui-form sui-form pull-right"> 
          <button class="sui-btn btn-primary" type="submit" ng-click="saveData($evtnt)">{{'保存'|translate}}</button>
    </span>
</div>